﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApp1
{
    class yuanguan
    {

        //        定义一个员工类，存放用户的工号、姓名和部门信息；定义两个构造函数，一个是无参；
        //一个有参构造函数，对类的属性进行初始化。

        public yuanguan()
        {

        }
        public yuanguan(int zore, string name, string lei)
        {
            this.zore = zore;
            this.name = name;
            this.lei = lei;
        }
        private int zore;
        private string name;
        private string lei;

       

        public int Zore
        {
            get { return this.zore; }
            set { this.zore = value; }
        }
        public String Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Lei
        {
            get { return this.Lei; }
            set { this.Lei = value; }
        }
        public void prin()
        {
            Console.WriteLine("姓名={0},年龄={1},部门信息{2}", this.name, this.zore, this.lei);


        }
    }
}